﻿using Xejen.Communication.Socket.Extensions;
using Xejen.Communication.Socket.Abstract;
using Xejen.Communication.Socket.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace Xejen.Communication.Socket.Extensions
{
    /// <summary>
    /// 表示Socket通讯构造器
    /// </summary>
    /// <creator>marc</creator>
    public interface ISocketCommunicatorBuilder : ICommunicatorBuilder<ISocketCommunicatorBuilder>
    {
        /// <inheritdoc cref="SocketConfig"/>
        SocketConfig Config { get; }
        /// <summary>
        /// 配置Socket选项对象<see cref="SocketConfig"/>
        /// </summary>
        /// <param name="configure">配置行为</param>
        /// <returns></returns>
        ISocketCommunicatorBuilder ConfigureSocketConfiguration(Action<SocketConfig> configure);
    }
}
